package com.example.hospital_208.po;

import java.util.Date;

public class PatientInfo {
    private Integer patient_infoid; // 新增患者信息主键ID
    private String patient_id;       // 患者ID（身份证号）
    private String name;             // 姓名
    private String sex;              // 性别
    private Date birthdate;          // 出生日期
    private String telephone;        // 联系电话
    private String address;          // 地址
    private String allergy_history;  // 过敏史
    private String medical_history;  // 病史
    private Date create_time;        // 创建时间
    private Date update_time;        // 更新时间
    private Integer user_id;         // 新增 user_id 字段

    // 构造方法
    public PatientInfo() {
    }

    // Getter和Setter方法
    public Integer getPatient_infoid() {
        return patient_infoid;
    }

    public void setPatient_infoid(Integer patient_infoid) {
        this.patient_infoid = patient_infoid;
    }

    public String getPatient_id() {
        return patient_id;
    }

    public void setPatient_id(String patient_id) {
        this.patient_id = patient_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAllergy_history() {
        return allergy_history;
    }

    public void setAllergy_history(String allergy_history) {
        this.allergy_history = allergy_history;
    }

    public String getMedical_history() {
        return medical_history;
    }

    public void setMedical_history(String medical_history) {
        this.medical_history = medical_history;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String toString() {
        return "PatientInfo{" +
                "patient_infoid=" + patient_infoid +
                ", patient_id='" + patient_id + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthdate=" + birthdate +
                ", telephone='" + telephone + '\'' +
                ", address='" + address + '\'' +
                ", user_id=" + user_id +
                '}';
    }
}